package com.lgCore.model;/**
 * Created by by on 2020/11/24 11:41
 */

import com.lgCore.model.rpc.RpcRequest;
import com.lgCore.model.rpc.RpcResponse;
import lombok.Data;

import java.io.Serializable;

/**
 * 顶层消息
 * //顶层消息是一种嵌套消息，嵌套了各种类型消息
 * //逻辑上：根据消息类型 type的值，最多只有一个有效
 *
 * @program: sxreader_rpc
 * @author: ligang
 * @create: 2020-11-24 11:41
 */
@Data
public class Message implements Serializable {
    private String sequence;  //通用字段：消息序列号
    private LoginRequest loginRequest;   //登录请求
    private LoginResponse loginResponse;   //登录响应
    private LoginOutRequest loginOutRequest;    //登出请求
    private LoginOutResponse loginOutResponse;      //登出响应
    private RpcRequest rpcRequest;        //rpc请求
    private RpcResponse rpcResponse;  //rpc响应
    private HeartRequest heartRequest; //心跳请求
    private HeartResponse heartResponse;  //心跳响应
}
